<%--
  Created by IntelliJ IDEA.
  User: XT
  Date: 2022/5/13
  Time: 15:40
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<html>
<head>
    <title>食材信息修改</title>
    <link rel="stylesheet" type="text/css" href="easyui/themes/default/easyui.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/default.css" />
    <link rel="stylesheet" type="text/css" href="easyui/themes/icon.css">
    <link rel="stylesheet" type="text/css" href="easyui/css/demo.css">
    <script type="text/javascript" src='easyui/js/outlook2.js'> </script>
    <script type="text/javascript" src="easyui/jquery.min.js"></script>
    <script type="text/javascript" src="easyui/jquery.easyui.min.js"></script>
    <script type="text/javascript" src="easyui/themes/locale/easyui-lang-zh_CN.js"></script>
</head>
<body>
<span style="color: green;font-size: 14px;margin-left: 50px">${Changed_message}</span>
<div id="dlg" class="easyui-dialog" title="食材使用登记" style="width:450px;height:300px;padding:10px"
     data-options="buttons: '#dlg-buttons',draggable:false">
    <form action="${pageContext.request.contextPath}/UpdateSc" method="post">
        <table align="center">
            <tr>
                <td>食材编号</td>
                <td><input type="text" id="scbh" name="scbh" value="<%=request.getParameter("scbh")%>"></td>
            </tr>
            <tr>
                <td>食材名称</td>
                <td><input type="text" id="scmc" name="scmc" value="<%=request.getParameter("scmc")%>"></td>
            </tr>
            <tr>
                <td>总库存</td>
                <td><input type="text" class="easyui-numberspinner" data-options="min:0,suffix:'筐/斤'"  id="zs" name="zs" value="<%=request.getParameter("zs")%>"></td>
            </tr>
            <tr>
                <td>剩余库存</td>
                <td><input type="text" class="easyui-numberspinner" data-options="min:0,suffix:'筐/斤'"  id="kc" name="kc" value="<%=request.getParameter("kc")%>"></td>
            </tr>
            <tr>
                <td></td>
                <td><input type="submit" value="提交" style="margin-left: 45px;width: 60px"></td>
            </tr>
        </table>
    </form>
</div>
<div id="dlg-buttons">
    <a href="${pageContext.request.contextPath}/SCServlet" class="easyui-linkbutton" onclick="javascript:$('#dlg').dialog('close')">关闭</a>
</div>
</body>

<script type="text/javascript">
    $("#scbh").textbox({
        readonly:true,
    });
    $("#scmc").textbox({
        readonly:true,
    });
    $("#zs").textbox({
        readonly:false,
    });
    $("#kc").textbox({
        readonly:false,
    });
</script>
</html>
